package com.example.designpattern.creational.factory.simple_factory.leetcode_problem;

import com.example.designpattern.creational.factory.simple_factory.leetcode_problem.factory.MaskFactory;
import org.junit.Test;

/**
 * 练习题
 */
public class Client {
    @Test
    public void test() {
        MaskFactory factory = new MaskFactory();
        // 输出：这是医用口罩
        System.out.println(factory.create("Surgical"));
        // 输出：这是 N95 口罩
        System.out.println(factory.create("N95"));
    }
}